﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace QuanLySieuThi.DTO
{
    public class CDonViTinh
    {
        #region Attribute
        int _iMaDVT;
        string _strTenDVT;
        #endregion
        #region Properties

        public int MaDVT
        {
            get { return _iMaDVT; }
            set { _iMaDVT = value; }
        }
        public string TenDVT
        {
            get { return _strTenDVT; }
            set { _strTenDVT = value; }
        }
        
        #endregion
        public DataTable LoadDonViTinh()
        {
            Help.CDataProvider dp = new Help.CDataProvider();
            dp.OpenConnect();
            string sql = "select TenDVT from DonViTinh";
            return dp.LoadDS(sql);
        }
    }
}
